昨天執行update-manager要自動更新套件
卻發現update-manager無法進行更新也關閉不掉
最後只好使出殺手鐧kill進行終止該程序
在執行kill之前必須先查出update-manager的處理程序(俗稱PID)
請輸入下列指令:
sudo ps aux | grep update-manager
接下來就會出現類似下面的訊息
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   3084  1560 ?        Ss   Oct05   0:01 /sbin/init
root         2  0.0  0.0      0     0 ?        S<   Oct05   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   Oct05   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   Oct05   0:01 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Oct05   0:00 [watchdog/0]
root      5112  0.1  5.5 112464 42976 ?        SNl  Oct10   5:19 /usr/bin/python2.6 /usr/bin/update-manager --no-focus-on-map
root     23441  0.0  0.1   4576   828 pts/0    S+   11:49   0:00 grep update-manager
其中PID為5112就是update-manager的處理程序
接下來執行下列指令來終止update-manager的處理程序
sudo kill 5112
原本關閉不掉的update-manager就會消失不見了